<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <title>商务合作</title>
    <link rel="stylesheet" type="text/css" href="__CSS__/api.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__/tt.css" />

    <style>
        html {
            background: rgba(243, 245, 246, 1);
        }

        body {
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
            background: rgba(243, 245, 246, 1);
        }

        .top {
            width: 100%;
            height: 80px;
            background: rgba(255, 255, 255, 1);
        }

        .top_box {
            width: 1180px;
            height: 100%;
            margin: 0 auto;
            align-items: center;
        }

        .top_logo {
            width: 122px;
            height: 32px;
            margin-right: 78px;
        }

        .top_label {
            position: relative;
            height: 80px;
            line-height: 80px;
            font-size: 16px;
            font-weight: 400;
            color: rgba(51, 51, 51, 1);
            margin-right: 48px;
        }

        .top_label_active::after {
            position: absolute;
            content: '';
            display: block;
            height: 4px;
            width: 32px;
            left: 0;
            right: 0;
            margin: auto;
            background-color: #FC2B40;
            bottom: 17px;
        }

        .top_down {
            display: inline-block;
            width: 8px;
            height: 8px;
            min-height: 8px;
            width: 8px;
            background: url(__IMG__/down.png) no-repeat center center;
            background-size: 8px 8px;
            margin-left: 4px;
        }

        .top_avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            margin-right: 8px;
        }

        .top_name {
            font-size: 16px;
            font-weight: 400;
            color: rgba(51, 51, 51, 1);
        }

        .top_notice {
            width: 24px;
            height: 24px;
            margin-left: 58px;
        }

        .xydd {
            width: 240px;
            height: 38px;
            background: rgba(252, 43, 64, 1);
            border-radius: 4px;
            font-size: 16px;
            color: rgba(255, 255, 255, 1);
            line-height: 38px;
            text-align: center;
            margin: 24px auto;
        }

        .out {
            background-color: #fff;
            padding: 32px 40px;
            width: 1180px;
            margin: 40px auto;
            box-sizing: border-box;
        }

        .gsjj {
            font-size: 22px;
            font-weight: 600;
            color: rgba(51, 51, 51, 1);
            line-height: 30px;
        }
        .l_img{
            width: 20px;
            height: 20px;
            position: relative;
            top:2px;
            margin-right: 5px;
        }
        .mid{
            width: 390px;
            margin: 56px auto 0;
        }

        input[type="text"] {
            height: 32px;
            margin: 0;
            padding: 0 12px;
            font-size: 14px;
            color: #666666;
            background: transparent;
            outline: none;
        }

        input::-webkit-input-placeholder {
            color: #CCCCCC;
        }
        .one {
            align-items: center;
            margin-bottom: 24px;
        }
        .left {
            width: 90px;
            font-size: 16px;
            font-weight: 400;
            color: #666666;
        }

        .kuang {
            width: 300px;
            height: 32px;
            border-radius: 4px;
            border: 1px solid rgba(221, 221, 221, 1);
            align-items: center;
            padding-right: 12px;
            font-size: 12px;
            font-weight: 400;
            color: rgba(204, 204, 204, 1);
        }
        .btn {
            width: 88px;
            height: 32px;
            background: rgba(252, 43, 64, 1);
            border-radius: 4px;
            font-size: 14px;
            color: rgba(255, 255, 255, 1);
            line-height: 32px;
            margin: 54px auto 0;
            text-align: center;
        }
        .top_card1{
            position: absolute;
            top:75px;
            left:0;
            width:170px;
            background:#fff;
            border-radius:4px;
            z-index:99;
            font-size:16px;
            font-weight:400;
            overflow: hidden;
            -webkit-box-shadow:0px 0px 10px rgba(0,0,0,0.2);
        }
        .top_card2{
            height:40px;
            line-height:40px;
            background:rgba(255,255,255,1);;
            color:rgba(102,102,102,1);
            padding-left:24px;
        }
        .top_card_active{
            height:40px;
            line-height:40px;
            background:rgba(252,43,64,0.1);
            color:rgba(252,43,64,1);
            padding-left:24px;
        }
        #order,
        #about,
        #user {
            display: none;
        }
        .top_card{
            position: relative;
        }
    </style>
</head>

<body>
{include file="public/header"}
<!-- <div class="xydd">如何成为小易嘀达合伙人</div> -->
<div class="out">
    <div class="gsjj"><img src="__IMG__/left_arrow.png" alt="" class="l_img">申请成为小易嘀达合伙人</div>
 <form class="form">
    <div class="mid">
            <div class="one flex-wrap">
                <div class="left">真实姓名</div>
                <div class="kuang flex-wrap">
                    <input type="text" name="name" placeholder="请输入真实姓名" class="flex-con">
                </div>
            </div>
            <div class="one flex-wrap">
                <div class="left">手机号</div>
                <div class="kuang flex-wrap">
                    <input type="text" name="phone" id="user_phone" onkeyup="this.value=this.value.replace(/\D/gi,'')" placeholder="请输入手机号" class="flex-con" >
                </div>
            </div>
            <div class="one flex-wrap">
                <div class="left">意向城市</div>
                <div class="kuang flex-wrap">
                    <input type="text" name="city" placeholder="请输入意向城市" class="flex-con" >
                </div>
            </div>
            <div class="btn" onclick="tijiao()">提交</div>
        </div>
    </form>

</div>


</body>
<script type="text/javascript" src="__SCRIPT__/xydd.js"></script>
<script src="/static/admin/js/jquery.min.js"></script>
<script>
    function tijiao() {
        var pattern = /^1[23456789]\d{9}$/;
        if(!pattern.test($('#user_phone').val())){
            alert('请输入正确的手机号');
            return false;
        }
        $.ajax({
            url:"{:url('shop/Affairs/swhz')}",
            type:'post',
            data:$('.form').serialize(),
            dataType:'json',
            success:function(res){
                if(res.status != 200){
                    alert(res.msg);
                    location.reload() ;
                    return false;
                }else{
                    window.location.href='/shop/Affairs/index';
                }
            }
        })
    }
</script>
</html>
